package org.cfx.basic.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import javax.validation.constraints.Email;
import java.io.Serializable;

/**
 * @author RTX 9090
 */
@Data
@TableName("t_org_employee")
public class UserImportVO implements Serializable, IExcelModel, IExcelDataModel {

    @Excel(name = "姓名")
    private String username;

    @Excel(name = "密码")
    private String password;

    @Email(message = "请填写正确的邮箱地址")
    @Excel(name = "邮箱")
    private String email;

    @Excel(name = "头像路径")
    private String headImage;

    @Excel(name = "年龄")
    private Integer age;

    @Excel(name = "部门id")
    private Long department_id;

    @Excel(name = "信息")
    private String errorMsg;

    private Integer rowNum;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(Integer i) {
        this.rowNum = i;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(String s) {
        this.errorMsg = s;
    }
}